
<!DOCTYPE HTML>
<html lang="zh" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Using QGC on CentOS · QGroundControl Developer Guide</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-richquotes/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-language-picker/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-versions-select/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-theme-dronecode/theme_styles.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../ReleaseBranchingProcess.html" />
    
    
    <link rel="prev" href="container.html" />
    

    </head>
    <body>
        
    
    <!-- ##HW Add dronecode menu -->
    <div id="common_dronecode_menu">

      <div class="common_menu_logo large_version">
        <a href="https://www.dronecode.org/">
          <img src="../../gitbook/gitbook-plugin-theme-dronecode/images/dronecode_top_bar_logo_full.png" alt="Dronecode logo (large)" />
        </a>
      </div>
      <div class="common_menu_logo small_version">
        <a href="https://www.dronecode.org/">
          <img src="../../gitbook/gitbook-plugin-theme-dronecode/images/dronecode_top_bar_logo_small.png" alt="Dronecode logo (small)" />
        </a>
      </div>
      
      <div class="common_menu_options">
        
            <div class="common_dronecode_menu_item"><a href="http://px4.io/">PX4</a></div>
            <div class="common_dronecode_menu_item large_version"><a href="http://qgroundcontrol.com/">QGroundControl</a></div>
            <div class="common_dronecode_menu_item small_version"><a href="http://qgroundcontrol.com/">QGC</a></div>
            <div class="common_dronecode_menu_item"><a href="https://www.dronecode.org/sdk/">SDK</a></div>
            <div class="common_dronecode_menu_item"><a href="https://mavlink.io/en/">MAVLink</a></div>
            <div class="common_dronecode_menu_item large_version"><a href="https://www.dronecode.org/documentation/">Documentation</a></div>
            <div class="common_dronecode_menu_item small_version"><a href="https://www.dronecode.org/documentation/">Docs</a></div>
            <div class="common_dronecode_menu_item large_version"><a href="http://discuss.px4.io/">Support</a></div>
            <div class="common_dronecode_menu_item small_version"><a href="http://discuss.px4.io/">Help</a></div>
        
      </div>
    </div>
    
<!-- ##HW END Add dronecode menu -->
    
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="輸入並搜尋" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    摘要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    Getting Started with source & builds
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="container.html">
            
                <a href="container.html">
            
                    
                    Build using Containers
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="CentOS.html">
            
                <a href="CentOS.html">
            
                    
                    Using QGC on CentOS
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../ReleaseBranchingProcess.html">
            
                <a href="../ReleaseBranchingProcess.html">
            
                    
                    QGC Release/Branching Process
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../communication_flow.html">
            
                <a href="../communication_flow.html">
            
                    
                    Communication Flow
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../firmware_plugin.html">
            
                <a href="../firmware_plugin.html">
            
                    
                    Plugin Architecture
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../classes/">
            
                <a href="../classes/">
            
                    
                    Class Hierarchy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../ui_design/">
            
                <a href="../ui_design/">
            
                    
                    User Interface Design
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../ui_design/multi_device_pattern.html">
            
                <a href="../ui_design/multi_device_pattern.html">
            
                    
                    Multi-Device Design Pattern
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../ui_design/font_palette.html">
            
                <a href="../ui_design/font_palette.html">
            
                    
                    Font and Colour Palette
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../ui_design/controls.html">
            
                <a href="../ui_design/controls.html">
            
                    
                    UI Controls
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../fact_system.html">
            
                <a href="../fact_system.html">
            
                    
                    Fact System
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../views/">
            
                <a href="../views/">
            
                    
                    Top Level Views
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../views/settings.html">
            
                <a href="../views/settings.html">
            
                    
                    Settings View
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../views/setup.html">
            
                <a href="../views/setup.html">
            
                    
                    Setup View
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../views/plan.html">
            
                <a href="../views/plan.html">
            
                    
                    Plan View
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.3.1" data-path="../plan/MissionCommandTree.html">
            
                <a href="../plan/MissionCommandTree.html">
            
                    
                    Dynamic UI for mission item editing
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../views/fly.html">
            
                <a href="../views/fly.html">
            
                    
                    Fly View
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../file_formats/">
            
                <a href="../file_formats/">
            
                    
                    File Formats
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../tools/">
            
                <a href="../tools/">
            
                    
                    Developer Tools
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../tools/mock_link.html">
            
                <a href="../tools/mock_link.html">
            
                    
                    Mock Link
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../command_line_options.html">
            
                <a href="../command_line_options.html">
            
                    
                    Command Line Options
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../custom_build/custom_build.html">
            
                <a href="../custom_build/custom_build.html">
            
                    
                    Custom Builds
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../custom_build/CreateRepos.html">
            
                <a href="../custom_build/CreateRepos.html">
            
                    
                    Initial Repository Setup For Custom Build
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../custom_build/Plugins.html">
            
                <a href="../custom_build/Plugins.html">
            
                    
                    Custom Build Plugins
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../custom_build/ResourceOverride.html">
            
                <a href="../custom_build/ResourceOverride.html">
            
                    
                    Resources Overrides
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4" data-path="../custom_build/customization.html">
            
                <a href="../custom_build/customization.html">
            
                    
                    Customization
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.4.1" data-path="../custom_build/FirstRunPrompts.html">
            
                <a href="../custom_build/FirstRunPrompts.html">
            
                    
                    First Run Prompts
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4.2" data-path="../custom_build/Toolbar.html">
            
                <a href="../custom_build/Toolbar.html">
            
                    
                    Toolbar customization
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4.3" data-path="../custom_build/FlyView.html">
            
                <a href="../custom_build/FlyView.html">
            
                    
                    Fly View Customization
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13.5" data-path="../custom_build/ReleaseBranchingProcess.html">
            
                <a href="../custom_build/ReleaseBranchingProcess.html">
            
                    
                    Release/Branching Process For Custom Builds
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6" data-path="../custom_build/mavlink.html">
            
                <a href="../custom_build/mavlink.html">
            
                    
                    MAVLink
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../contribute/">
            
                <a href="../contribute/">
            
                    
                    Code Submission
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../contribute/dev_call.html">
            
                <a href="../contribute/dev_call.html">
            
                    
                    Developer Call
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../contribute/coding_style.html">
            
                <a href="../contribute/coding_style.html">
            
                    
                    Coding Style
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../contribute/unit_tests.html">
            
                <a href="../contribute/unit_tests.html">
            
                    
                    Unit Tests
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="../contribute/pull_requests.html">
            
                <a href="../contribute/pull_requests.html">
            
                    
                    Pull Requests
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.5" data-path="../contribute/licences.html">
            
                <a href="../contribute/licences.html">
            
                    
                    Licenses
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">Dronecode快捷方式</li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <a target="_blank" href="https://docs.qgroundcontrol.com/en/">
            
                    
                    QGroundControl用户指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" >
            
                <a target="_blank" href="https://docs.px4.io/en/">
            
                    
                    PX4用户指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" >
            
                <a target="_blank" href="https://dev.px4.io/en/">
            
                    
                    PX4开发人员指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
                <a target="_blank" href="https://mavlink.io/en/">
            
                    
                    MAVLink指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
                <a target="_blank" href="https://mavsdk.mavlink.io/">
            
                    
                    MAVSDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
                <a target="_blank" href="https://camera-manager.dronecode.org/en/">
            
                    
                    Dronecode相机管理器
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本書使用 GitBook 釋出
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Using QGC on CentOS</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x5728;-centos-7-&#x4E0A;&#x4F7F;&#x7528;-qgc"><a name="&#x5728;-centos-7-&#x4E0A;&#x4F7F;&#x7528;-qgc" class="plugin-anchor" href="#&#x5728;-centos-7-&#x4E0A;&#x4F7F;&#x7528;-qgc"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5728; CentOS 7 &#x4E0A;&#x4F7F;&#x7528; QGC</h1>
<h2 id="&#x5B89;&#x88C5;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;"><a name="&#x5B89;&#x88C5;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;" class="plugin-anchor" href="#&#x5B89;&#x88C5;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5B89;&#x88C5;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;</h2>
<p>&#x5B89;&#x88C5;CentOS 7</p>
<ol>
<li>&#x4ECE;&#x8FD9;&#x91CC;&#x83B7;&#x53D6;&#x6700;&#x65B0;<a href="http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso" target="_blank">CentOS 7 ISO </a></li>
<li>&#x901A;&#x8FC7;<a href="https://linuxize.com/post/how-to-create-a-bootable-centos-7-usb-stick/" target="_blank">following this guide</a>&#x5236;&#x4F5C;&#x4E00;&#x4E2A; USB &#x542F;&#x52A8;&#x76D8;&#x3002;</li>
<li>&#x4ECE;USB&#x542F;&#x52A8;&#x76D8;&#x4E2D;&#x542F;&#x52A8;&#x76EE;&#x6807;&#x8BBE;&#x5907;&#x3002;</li>
</ol>
<p>&#x4E0B;&#x9762;&#x7684;&#x793A;&#x4F8B;&#x5C06;&#x8BF4;&#x660E;&#x5982;&#x4F55;&#x4ECE;USB&#x542F;&#x52A8;&#x76D8;&#x542F;&#x52A8;&#x76EE;&#x6807;&#x8BBE;&#x5907;&#x3002;</p>
<p><strong>Example&#xFF1A;</strong> <em>Panasonic Toughpad FZ-M1</em> &#xFF08;&#x4E3A;&#x65B9;&#x4FBF;&#x9075;&#x5FAA;&#x672C;&#x6307;&#x5357;&#x64CD;&#x4F5C;&#xFF0C;&#x5EFA;&#x8BAE;&#x5728;&#x8BBE;&#x5907;&#x4E0A;&#x9644;&#x4E0A;&#x4E00;&#x4E2A;&#x952E;&#x76D8;&#x548C;&#x9F20;&#x6807;&#xFF09;&#x3002;</p>
<ol>
<li>&#x5728;&#x9644;&#x52A0;&#x7684; USB &#x952E;&#x76D8;&#x4E0A;&#x6309;&#x4F4F; <strong>Delete</strong> &#x952E;&#xFF0C;&#x6216;&#x8005;&#x5728;&#x542F;&#x52A8;&#x65F6;&#x6309;&#x4E0B;&#x7535;&#x6E90;&#x6309;&#x94AE;&#x5468;&#x56F4;&#x7684;&#x6240;&#x6709;&#x6309;&#x94AE;&#xFF0C;&#x4FBF;&#x53EF;&#x8FDB;&#x5165;BIOS &#x83DC;&#x5355;&#x3002;</li>
<li>&#x5728; BIOS &#x83DC;&#x5355;&#x754C;&#x9762;&#x4F7F;&#x7528;&#x7BAD;&#x5934;&#x952E;&#x6216;&#x89E6;&#x6478;&#x5C4F;&#x5207;&#x6362;&#x5230; <em>Exit</em> &#x9009;&#x9879;&#x5361;&#x3002;</li>
<li>&#x4ECE;&#x542F;&#x52A8;&#x8BBE;&#x5907;&#x5217;&#x8868;&#x4E2D;&#xFF0C;&#x9009;&#x62E9;&#x5DF2;&#x63D2;&#x5165;&#x7684;USB&#x542F;&#x52A8;&#x76D8;&#x3002;</li>
</ol>
<p><strong>Example</strong> <a href="https://www.uavcomp.com/command-control/micronav/" target="_blank">UAV &#x7EC4;&#x4EF6;&#x5FAE;&#x5BFC;&#x822A;</a> &#x8BBE;&#x5907;&#xFF1A;</p>
<ol>
<li>CentOS &#x4E0D;&#x4F1A;&#x4EE5;&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#x5B89;&#x88C5;&#x3002; &#x4E3A;&#x89E3;&#x51B3;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;&#x53EF;&#x8FDB;&#x884C;&#x5982;&#x4E0B;&#x64CD;&#x4F5C;&#xFF1A; <ol>
<li>&#x5982;&#x4E0A;&#x8FF0;&#x7684;&#x793A;&#x4F8B;&#x4E2D;&#x6240;&#x8FF0;&#xFF0C;&#x8F6C;&#x5230;BIOS&#x83DC;&#x5355;&#x3002;</li>
<li>&#x5728;&#x201C;Advanced&#x201D;&#x9009;&#x9879;&#x5361;&#x4E0B;&#x7981;&#x7528;&#x201C;Extension Port&#x201D;&#x8BBE;&#x5907;&#x3002;</li>
<li>&#x5728;BIOS&#x83DC;&#x5355;&#x7684;&#x9000;&#x51FA;&#x9875;&#x9762;&#x4E0A;&#x9009;&#x62E9;&#x201C;Exit and save&#x201D;&#xFF0C;&#x7136;&#x540E;&#x4ECE;USB&#x542F;&#x52A8;&#x76D8;&#x542F;&#x52A8;&#x76EE;&#x6807;&#x8BBE;&#x5907;&#x3002;</li>
<li>&#x5728; CentOS &#x5B89;&#x88C5;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x53EF;&#x518D;&#x6B21;&#x6062;&#x590D;&#x66F4;&#x6539;&#xFF0C;&#x4EE5;&#x4FBF;&#x5FAE;&#x786C;&#x7F51;&#x7EDC;&#x6B63;&#x5E38;&#x5DE5;&#x4F5C;&#x3002;</li>
</ol>
</li>
<li>&#x5982;&#x679C;&#x60F3;&#x8981;&#x91CD;&#x65B0;&#x8FDB;&#x5165;Linux&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#xFF0C;&#x8BF7;&#x5148;&#x5173;&#x95ED;&#x8BBE;&#x5907;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x70ED;&#x91CD;&#x542F;&#x3002; &#x5426;&#x5219;&#x5FAE;&#x786C;&#x7F51;&#x7EDC;&#x9002;&#x914D;&#x5668;&#x5C06;&#x65E0;&#x6CD5;&#x6B63;&#x5E38;&#x5DE5;&#x4F5C;&#x5E76;&#x6020;&#x901F;&#x6574;&#x4E2A;&#x7CFB;&#x7EDF;&#x3002;</li>
</ol>
<h3 id="centos-&#x8F6F;&#x4EF6;&#x9009;&#x62E9;&#x5B89;&#x88C5;&#x9009;&#x9879;"><a name="centos-&#x8F6F;&#x4EF6;&#x9009;&#x62E9;&#x5B89;&#x88C5;&#x9009;&#x9879;" class="plugin-anchor" href="#centos-&#x8F6F;&#x4EF6;&#x9009;&#x62E9;&#x5B89;&#x88C5;&#x9009;&#x9879;"><i class="fa fa-link" aria-hidden="true"></i></a>CentOS &#x8F6F;&#x4EF6;&#x9009;&#x62E9;&#x5B89;&#x88C5;&#x9009;&#x9879;</h3>
<p>&#x8FD9;&#x4E9B;&#x90FD;&#x662F;&#x7528;&#x4E8E;&#x5B89;&#x88C5;CentOS&#x5F00;&#x53D1;&#x7CFB;&#x7EDF;&#x7684;&#x9009;&#x9879;&#x3002; &#x4F7F;&#x7528;&#x5B83;&#x4F5C;&#x4E3A;&#x6307;&#x5357;&#x3002;</p>
<p><img src="../../assets/getting_started/centos/centos_installation.png" alt="&#x5B89;&#x88C5;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;../Qt/5.12.4"></p>
<p><img src="../../assets/getting_started/centos/centos_sw_selection.png" alt="CentOS &#x8F6F;&#x4EF6;&#x9009;&#x9879;"></p>
<h3 id="&#x66F4;&#x65B0;-gstreamer"><a name="&#x66F4;&#x65B0;-gstreamer" class="plugin-anchor" href="#&#x66F4;&#x65B0;-gstreamer"><i class="fa fa-link" aria-hidden="true"></i></a>&#x66F4;&#x65B0; GStreamer</h3>
<p>CentOS &#x5B89;&#x88C5;&#x5E76;&#x542F;&#x52A8;&#x540E;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x4E3A;QGC &#x642D;&#x5EFA;&#x73AF;&#x5883;&#x3002; &#x9996;&#x5148;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x5C06;GStreamer&#x66F4;&#x65B0;&#x4E3A;&#x6700;&#x65B0;&#x7248;&#x672C;&#x3002; &#x672C;&#x6307;&#x5357;&#x9075;&#x5FAA;Alice Wonder&#x7684;&#x63D0;&#x793A;&#xFF1A;<a href="https://media.librelamp.com&#x3002;" target="_blank">https://media.librelamp.com&#x3002;</a></p>
<pre><code>sudo yum install epel-release -y
wget http://awel.domblogger.net/7/media/x86_64/awel-media-release-7-6.noarch.rpm
sudo yum localinstall awel-media-release-7-6.noarch.rpm -y
sudo yum clean all
sudo yum update
sudo yum install gstreamer1* --skip-broken -y
</code></pre><p><strong>Note:</strong>&#x786E;&#x4FDD;&#x5982;&#x4E0B;&#x7EC4;&#x4EF6;&#x5DF2;&#x5B89;&#x88C5; (Intel GPUs&#x7684; vaapi)</p>
<pre><code>sudo yum install gstreamer1-vaapi
sudo yum install gstreamer1-libav
</code></pre><p><strong>Note:</strong> Install these to enable hardware accelerated video decoding</p>
<pre><code>sudo yum install libva
sudo yum install libva-utils
sudo yum install libva-intel-driver
</code></pre><p>If libva-intel-driver is not found you can download it and install it manually</p>
<pre><code>wget http://download1.rpmfusion.org/free/el/updates/7/x86_64/l/libva-intel-driver-1.8.3-4.el7.x86_64.rpm
sudo yum localinstall libva-intel-driver-1.8.3-4.el7.x86_64.rpm -y
</code></pre><h3 id="&#x5B89;&#x88C5;sdl2"><a name="&#x5B89;&#x88C5;sdl2" class="plugin-anchor" href="#&#x5B89;&#x88C5;sdl2"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5B89;&#x88C5;SDL2</h3>
<p>SDL2 is used for joystick support.</p>
<pre><code>sudo yum install SDL2 SDL2-devel -y
</code></pre><h3 id="&#x66F4;&#x65B0;&#x5185;&#x6838;&#x53EF;&#x9009;"><a name="&#x66F4;&#x65B0;&#x5185;&#x6838;&#x53EF;&#x9009;" class="plugin-anchor" href="#&#x66F4;&#x65B0;&#x5185;&#x6838;&#x53EF;&#x9009;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x66F4;&#x65B0;&#x5185;&#x6838;(&#x53EF;&#x9009;)</h3>
<blockquote class="clearfix alert alert-success"><strong class="fa fa-2x fa-thumbs-o-up"></strong>
<p>&#x5F53;&#x8FD0;&#x884C;&#x547D;&#x4EE4;<code>/dev/input/*</code> &#x65F6;&#xFF0C; &#x5982;&#x679C;&#x6E38;&#x620F;&#x6746;&#x88AB;&#x6210;&#x529F;&#x8BC6;&#x522B;&#x5E76;&#x663E;&#x793A;&#x4E3A;<code>/dev/input/js0</code> &#xFF0C;&#x5219;&#x53EF;&#x4EE5;&#x8DF3;&#x8FC7;&#x8FD9;&#x4E00;&#x6B65;&#x3002;</p>
</blockquote>
<p>We recommend updating the kernel for:</p>
<ul>
<li>&#x66F4;&#x597D;&#x5730;&#x89E6;&#x6478;&#x5C4F;&#x5E55;&#x54CD;&#x5E94;&#x6027;&#x80FD;&#x3002;</li>
<li>&#x6B63;&#x786E;&#x8BC6;&#x522B;&#x67D0;&#x4E9B;USB&#x8BBE;&#x5907; - &#x7279;&#x522B;&#x662F;&#x6E38;&#x620F;&#x6746;&#x3002;</li>
</ul>
<p>The following joysticks are known not do work out of the box with the default CentOS 7 kernel (3.10.0):</p>
<ul>
<li>Logitech F310</li>
<li>Microsoft Xbox 360 controller (USB)</li>
</ul>
<p>To fix the joystick not being recognized (even if the same unit is working under Windows or Ubuntu) please <a href="https://www.howtoforge.com/tutorial/how-to-upgrade-kernel-in-centos-7-server/" target="_blank">follow this guide to update the kernel</a>.</p>
<p>Here&apos;s a short summary of the commands that you need to execute to update the kernel:</p>
<pre><code>sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
sudo yum --enablerepo=elrepo-kernel install kernel-ml -y
</code></pre><p>Reboot your device afterwards and make sure the new kernel version shows up as the default start option in the GRUB menu on boot.</p>
<blockquote class="clearfix alert alert-info"><strong class="fa fa-2x fa-edit"></strong>
<p> &#x60A8;&#x53EF;&#x80FD;&#x9700;&#x8981;&#x5728; BIOS &#x4E2D;&#x7981;&#x7528;&#x5B89;&#x5168;&#x542F;&#x52A8;&#x624D;&#x80FD;&#x542F;&#x52A8;&#x65B0;&#x5185;&#x6838;&#x3002;</p>
</blockquote>
<h2 id="&#x5728;-centos-&#x4E0A;&#x8FD0;&#x884C;-qgc"><a name="&#x5728;-centos-&#x4E0A;&#x8FD0;&#x884C;-qgc" class="plugin-anchor" href="#&#x5728;-centos-&#x4E0A;&#x8FD0;&#x884C;-qgc"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5728; CentOS &#x4E0A;&#x8FD0;&#x884C; QGC</h2>
<p>Before launching QGC, you need to make sure the current user has access to the dialout group (serial port access permission):</p>
<pre><code>sudo usermod -a -G dialout $USER
</code></pre><h3 id="&#x9632;&#x706B;&#x5899;"><a name="&#x9632;&#x706B;&#x5899;" class="plugin-anchor" href="#&#x9632;&#x706B;&#x5899;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9632;&#x706B;&#x5899;</h3>
<p>The default firewall security level of Red Hat distributions like CentOS block MAVLink communication and also the camera video stream. So you need to create rules to open the incoming ports for MAVLink and camera stream. For non-production local environment testing purposes ONLY you can temporarily disable the firewall using the following commands (<a href="https://www.liquidweb.com/kb/how-to-stop-and-disable-firewalld-on-centos-7/" target="_blank">from here</a>):</p>
<p>Temporary:</p>
<pre><code>systemctl stop firewalld
</code></pre><p>Permanent (at your own risk):</p>
<pre><code>systemctl disable firewalld
</code></pre><p>Undo permanent change:</p>
<pre><code>systemctl enable firewalld
</code></pre><h3 id="&#x4E0E;&#x591A;&#x7F51;&#x7EDC;&#x7684;&#x8FDE;&#x63A5;&#x95EE;&#x9898;"><a name="&#x4E0E;&#x591A;&#x7F51;&#x7EDC;&#x7684;&#x8FDE;&#x63A5;&#x95EE;&#x9898;" class="plugin-anchor" href="#&#x4E0E;&#x591A;&#x7F51;&#x7EDC;&#x7684;&#x8FDE;&#x63A5;&#x95EE;&#x9898;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E0E;&#x591A;&#x7F51;&#x7EDC;&#x7684;&#x8FDE;&#x63A5;&#x95EE;&#x9898;</h3>
<p>In our test with CentOS we had problems when connecting to multiple networks through multiple network devices even with appropriate IP address and subnet assignment.</p>
<p>Issues consisted of:</p>
<ul>
<li>&#x8FDE;&#x63A5;&#x5230;&#x7B2C;&#x4E8C;&#x4E2A;&#x7F51;&#x7EDC;&#x65F6;&#x5931;&#x53BB;&#x4E92;&#x8054;&#x7F51;&#x8FDE;&#x63A5;</li>
<li>&#x4E0E;&#x8F7D;&#x5177;&#x7684;&#x8FDE;&#x63A5;&#x8D28;&#x91CF;&#x4E0D;&#x4F73;&#xFF0C;&#x5B58;&#x5728;&#x6709;&#x5927;&#x91CF;&#x4E0D;&#x786E;&#x5B9A;&#x975E;&#x518D;&#x73B0;&#x95EE;&#x9898;&#x548C;&#x5305;&#x4E22;&#x5931;&#xFF08;&#x4F8B;&#x5982;&#xFF0C;&#x5728;&#x5E38;&#x89C4;&#x6A21;&#x5F0F;&#x4E2D;&#xFF0C; 30&#x79D2;&#x5B8C;&#x7F8E;&#x8FDE;&#x63A5;&#xFF0C;4&#x79D2;&#x4E22;&#x5931;&#x6570;&#x636E;&#x5305;)</li>
</ul>
<p>If you face any of these problems avoid them by only connecting one network at a time e.g. switching between WiFi and Microhard.</p>
<h3 id="&#x6267;&#x884C;&#x9884;&#x6784;&#x5EFA;&#x7684;-qgc-&#x4E8C;&#x8FDB;&#x5236;&#x6587;&#x4EF6;"><a name="&#x6267;&#x884C;&#x9884;&#x6784;&#x5EFA;&#x7684;-qgc-&#x4E8C;&#x8FDB;&#x5236;&#x6587;&#x4EF6;" class="plugin-anchor" href="#&#x6267;&#x884C;&#x9884;&#x6784;&#x5EFA;&#x7684;-qgc-&#x4E8C;&#x8FDB;&#x5236;&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6267;&#x884C;&#x9884;&#x6784;&#x5EFA;&#x7684; QGC &#x4E8C;&#x8FDB;&#x5236;&#x6587;&#x4EF6;</h3>
<ul>
<li>&#x4E3A;CentOS&#x4FDD;&#x7559;&#x5305;&#x542B;&#x9884;&#x6784;&#x5EFA;&#x7684;QGC&#x4E8C;&#x8FDB;&#x5236;&#x6587;&#x4EF6;&#x7684;&#x5F52;&#x6863;&#x3002; &#x76EE;&#x524D;&#xFF0C;&#x8FD9;&#x4E2A;&#x6784;&#x5EFA;&#x6CA1;&#x6709;&#x81EA;&#x52A8;&#x90E8;&#x7F72;&#xFF0C;&#x5982;&#x679C;&#x60A8;&#x8FEB;&#x5207;&#x9700;&#x8981;&#xFF0C;&#x8BF7;&#x4E0E;&#x5F00;&#x53D1;&#x8005;&#x53D6;&#x5F97;&#x8054;&#x7CFB;&#xFF0C;&#x3002;</li>
<li><a href="https://www.hostdime.com/kb/hd/command-line/how-to-tar-untar-and-zip-files" target="_blank">&#x89E3;&#x538B;&#x5F52;&#x6863;</a></li>
<li>&#x4ECE;&#x89E3;&#x538B;&#x6587;&#x4EF6;&#x91CC;&#x627E;&#x5230;&#x811A;&#x672C;&#x6587;&#x4EF6;<code>qgroundcontrol-run.sh</code></li>
<li><p>&#x8F93;&#x5165;&#x5982;&#x4E0B;&#x547D;&#x4EE4;&#xFF0C;&#x8FD0;&#x884C;&#x8BE5;&#x811A;&#x672C;</p>
<pre><code>./qgroundcontrol-run.sh
```
</code></pre><h2 id="building-qgc-on-centos"><a name="building-qgc-on-centos" class="plugin-anchor" href="#building-qgc-on-centos"><i class="fa fa-link" aria-hidden="true"></i></a>Building QGC on CentOS</h2>
<h3 id="installing-qt"><a name="installing-qt" class="plugin-anchor" href="#installing-qt"><i class="fa fa-link" aria-hidden="true"></i></a>Installing Qt</h3>
</li>
</ul>
<p>mkdir ~/devel cd ~/devel</p>
<pre><code>&lt;br /&gt;Install Qt 5.12.4 from the Qt installation script that can be downloaded [here](https://www.qt.io/download-thank-you?os=linux&amp;hsLang=en).
Once downloaded, make it executable and run it:
</code></pre><p>chmod +x qt-unified-linux-x64-3.1.1-online.run ./qt-unified-linux-x64-3.1.1-online.run</p>
<pre><code>&lt;br /&gt;Select the following options and install it under `~/devel/Qt`:

![Qt Software Selection](../../assets/getting_started/centos/qt_setup.png)

### Clone and Build QGC
</code></pre><p>git clone --recursive <a href="https://github.com/mavlink/qgroundcontrol.git" target="_blank">https://github.com/mavlink/qgroundcontrol.git</a> mkdir build cd build</p>
<pre><code>For a debug/test build:
</code></pre><p>../Qt/5.12.4/gcc_64/bin/qmake ../qgroundcontrol/qgroundcontrol.pro -spec linux-g++ CONFIG+=debug</p>
<pre><code>For a release build:
</code></pre><p>../Qt/5.12.4/gcc_64/bin/qmake ../qgroundcontrol/qgroundcontrol.pro -spec linux-g++ CONFIG+=qtquickcompiler</p>
<pre><code>Build it:
</code></pre><p>make -j4 ```</p>
<p>You can alternatively launch <em>QtCreator</em> (found under <code>~/devel/Qt/Tools/QtCreator/bin/qtcreator</code>), load the <code>qgroundcontro.pro</code> project and build/debug from within its IDE.</p>
<p>By default, this will build the regular QGC. To build the sample, customized UI version, follow <a href="https://github.com/mavlink/qgroundcontrol/blob/master/custom-example/README.md" target="_blank">these instructions</a>.</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="container.html" class="navigation navigation-prev " aria-label="Previous page: Build using Containers">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../ReleaseBranchingProcess.html" class="navigation navigation-next " aria-label="Next page: QGC Release/Branching Process">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Using QGC on CentOS","level":"1.2.2","depth":2,"next":{"title":"QGC Release/Branching Process","level":"1.3","depth":1,"path":"ReleaseBranchingProcess.md","ref":"ReleaseBranchingProcess.md","articles":[]},"previous":{"title":"Build using Containers","level":"1.2.1","depth":2,"path":"getting_started/container.md","ref":"getting_started/container.md","articles":[]},"dir":"ltr"},"config":{"plugins":["youtube","richquotes@git+https://github.com/Dronecode/gitbook-plugin-richquotes.git","anchors","page-toc-button","collapsible-menu","language-picker","custom-favicon","language-redirect@git+https://github.com/hamishwillee/gitbook-plugin-language-redirect.git","toolbar@git+https://github.com/hamishwillee/gitbook-plugin-toolbar.git","versions-select@git+https://github.com/Dronecode/gitbook-plugin-versions-select.git","theme-dronecode@git+https://github.com/dronecode/theme-dronecode.git"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"theme-dronecode":{"logo":{"logo_large":"gitbook-plugin-theme-dronecode/images/dronecode_top_bar_logo_full.png","logo_small":"gitbook-plugin-theme-dronecode/images/dronecode_top_bar_logo_small.png","url":"https://www.dronecode.org/"}},"collapsible-menu":{},"language-picker":{"grid-columns":3},"youtube":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"versions-select":{"type":"branches"},"language-redirect":{"baseurl":"https://donlakeflyer.gitbooks.io/qgroundcontrol-developers-guide/"},"fontsettings":{"theme":"white","family":"sans","size":2},"richquotes":{"tip":{"alert":"success","picto":"fa-thumbs-o-up"}},"highlight":{},"favicon":"favicon.ico","page-toc-button":{},"custom-favicon":{},"versions":{"gitbookConfigURL":"https://raw.githubusercontent.com/mavlink/qgc-dev-guide/master/book.json","options":[{"value":"https://dev.qgroundcontrol.com/master/en/","text":"master"}]},"toolbar":{"buttons":[{"label":"Bug tracker","icon":"fa fa-bug","position":"left","url":"https://github.com/mavlink/qgc-dev-guide/issues/new?title=Doc+Bug:+{{title}}&body=DESCRIBE+PROBLEM+WITH+DOCS+HERE%0A%0ABug+Page:+[{{title}}]({{url}})"},{"label":"GitHub","icon":"fa fa-github","url":"https://github.com/mavlink/qgc-dev-guide"},{"label":"Edit page on github","icon":"fa fa-pencil-square-o","position":"left","url":"https://github.com/mavlink/qgc-dev-guide/edit/master/{{filepath_lang}}"}]},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"logo":"./assets/site/logo_qgc_rgb_horizontal.png","qgc_version":"master","qt_version":"5.15.2"},"title":"QGroundControl Developer Guide","language":"zh","gitbook":"*"},"file":{"path":"getting_started/CentOS.md","mtime":"2023-12-06T21:07:43.694Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-12-06T21:08:22.396Z"},"basePath":"..","book":{"language":"zh"}});
        });
    </script>
</div>

    

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-collapsible-menu/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-language-picker/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-toolbar/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-versions-select/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

